/*!
 * tykhome - message.js
 * Author tykhome <yongketian@gmail.com>
 */

/**
 * Module dependencies.
 */
var mongoose = require('mongoose');
var Schema = mongoose.Schema;

var TagSchema = new Schema({
	type: { type: String },
	master_id: { type: ObjectId },
	author_id: { type: ObjectId },
	topic_id: { type: ObjectId },
	reply_id: { type: ObjectId },
	category: { type : String },
	has_read: { type: Boolean, default: false },
	create_at: { type: Date, default: Date.now }
});

mongoose.model('Tag', TagSchema);
